var http = require('http');
const tools = require("./module/tools.js")
console.log(tools)


http.createServer(function (request, response) {
  response.writeHead(200, {"Content-Type": "text/html;charset='utf-8'"});
  response.write("<head><meta charset='UTF-8'></head>")
  response.write('你好 nodejs<br>');  

  var api = tools.formatApt("api/list");
  response.write(api);
  response.end();

}).listen(3000);

console.log('Server running at http://127.0.0.1:3000/');